* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Aug 2013 18:06:46 +0000 (14:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Aug 2013 18:06:46 +0000 (14:06 -0400)
commit4ceafb778b0715a45b53c2967b69a552c960aec7
treecab0dacefc8df74340276d45c6de3d677dd4b328
parentc4fe1c14021882d1cb015696cca07595e2715dc4
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar): Add rule for formal
params of lambda expressions.
(ruby-smie--implicit-semi-p): Refine rule.
(ruby-smie--opening-pipe-p): New function.
(ruby-smie--forward-token, ruby-smie--backward-token): Handle Ruby
symbols and matched |...| for formal params.
(ruby-smie-rules): Don't let the formal params of a "do" prevent it
from being treated as hanging.  Handle "rescue".
lisp/ChangeLog
lisp/progmodes/ruby-mode.el